package ModelLayer;

/**
 * 
 * @author DM79 group 5
 * @version 2012.13.12
 */

public class Order {
	private String idOrder;
	private String createdDate;
	private String paymentDeadline;
	private String statusOrder;

    //association to Offer
    private Offer offer;
	
	//constructors
    public Order() {    	
    }
    
    public Order(String idOrder)
    {
    	this.idOrder = idOrder;
    }

	public Order(Offer offer) {
        this.offer = offer;
	}
	
	public Order(String idOrder, Offer offer) {
		this.idOrder = idOrder;
        this.offer = offer;
	}

    public Order(String idOrder, String paymentDeadline){
        this.paymentDeadline = paymentDeadline;

    }

    public Order(String idOrder, String createdDate, String paymentDeadline, String statusOrder){
        this.idOrder = idOrder;
        this.createdDate = createdDate;
        this.paymentDeadline = paymentDeadline;
        this.statusOrder = statusOrder;
    }

	public Order(String idOrder,String createdDate,String paymentDeadline,String statusOrder, Offer offer) {
		this.idOrder = idOrder;
		this.createdDate = createdDate;
		this.paymentDeadline = paymentDeadline;
		this.statusOrder = statusOrder;
        this.offer = offer;
	}
	
	/**
	 * getters
	 */

	/**
	 * @return the idOrder
	 */
	public String getIdOrder() {
		return idOrder;
	}

	/**
	 * @return the createdDate
	 */
	public String getCreatedDate() {
		return createdDate;
	}

	/**
	 * @return the paymentDeadline
	 */
	public String getPaymentDeadline() {
		return paymentDeadline;
	}

	/**
	 * @return the statusOrder
	 */
	public String getStatusOrder() {
		return statusOrder;
	}

	/**
	 * @return the offer
	 */
    public Offer getOffer() {
        return offer;
    }

	/**
	 * setters
	 */
	
	/**
	 * @param idOrder the idOrder to set
	 */
	public void setIdOrder(String idOrder) {
		this.idOrder = idOrder;
	}

	/**
	 * @param createdDate the createdDate to set
	 */
	public void setCreatedDate(String createdDate) {
		this.createdDate = createdDate;
	}

	/**
	 * @param paymentDeadline the paymentDeadline to set
	 */
	public void setPaymentDeadline(String paymentDeadline) {
		this.paymentDeadline = paymentDeadline;
	}

	/**
	 * @param statusOrder the statusOrder to set
	 */
	public void setStatusOrder(String statusOrder) {
		this.statusOrder = statusOrder;
	}

	/**
	 * @param offer the offer to set
	 */
    public void setOffer(Offer offer) {
        this.offer = offer;
    }
}
